package com.joysuch.wwyt.api.base.controller;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.edu.bean.EduCertPageParam;
import com.joysuch.wwyt.edu.service.EduCertificateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/base/certificate")
@Api(tags = "证书")
public class CertificateController {
    @Autowired
    private EduCertificateService eduCertificateService;

    @GetMapping("simple-page")
    @ApiOperation("证书选择")
    public ResultBean simplePage(Pageable pageable, EduCertPageParam param) {
        return eduCertificateService.getSimplePage(pageable, param);
    }


}
